]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Inhibit animations if X server advertises VNC-EXTENSION
authorJonas Ådahl <jadahl@gmail.com>
Tue, 1 Oct 2019 10:03:52 +0000 (12:03 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 20 Feb 2020 11:14:55 +0000 (11:14 +0000)
This was previously done by gsd-xsettings to disable animations when
running in Xvnc.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/757

js/ui/main.js

index 09f1465e4fb1310898dc1f2a699a2b1b758a9e69..65cbbd3ac8820e55bf0c74468af9858b81a8f9c4 100644 (file)
@@ -768,5 +768,12 @@ var AnimationsSettings = class {
             St.Settings.get().inhibit_animations();
             return;
         }
+
+        let isXvnc = Shell.util_has_x11_display_extension(
+            global.display, 'VNC-EXTENSION');
+        if (isXvnc) {
+            St.Settings.get().inhibit_animations();
+            return;
+        }
     }
 };